package com.sbtr.business.classify.vo;

import cn.hutool.json.JSONArray;
import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * 算法裁剪生成记录 实体类
 *
 * @author dgl
 * @since 2024-01-02
 */
@Data
@Accessors(chain = true)
@ApiModel(value="AlgoClipRecord对象")
public class AlgoClipRecordNodeVO {

    @TableId(value = "id")
    private Long id;

    @ApiModelProperty(value = "条件")
    private JSONArray children;

    @ApiModelProperty(value = "文件名")
    private String fileName;

    @ApiModelProperty(value = "算法模版id")
    private Long templateId;

    @ApiModelProperty(value = "裁剪时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")// 后台传数据到前台
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //前台传数据到后台
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    private String creater;

    @ApiModelProperty(value = "裁剪文件文件")
    private String clipFile;

}
